#ifndef REAL_ZMQSERVER_H_
#define REAL_ZMQSERVER_H_

#include "util.h"
#include "zmqSocket.h"
#include <QObject>
#include <QJsonObject>

namespace rea {

class zmqServer : public QObject{
    Q_OBJECT
public:
    zmqServer(const QJsonObject& aConfig = QJsonObject());
    ~zmqServer();
public slots:
    void ReadMessage(const std::string& aConnect, const QJsonObject& aData);
private:
    zmqSockets m_sockets{"server"};
    QJsonObject m_protocal;
};

}

#endif
